﻿using System;

namespace MessagePack
{
	// Token: 0x020000FA RID: 250
	public static class MessagePackCode
	{
		// Token: 0x0600038A RID: 906 RVA: 0x0000C9C4 File Offset: 0x0000ADC4
		static MessagePackCode()
		{
			for (int i = 0; i <= 127; i++)
			{
				MessagePackCode.typeLookupTable[i] = MessagePackType.Integer;
				MessagePackCode.formatNameTable[i] = "positive fixint";
			}
			for (int j = 128; j <= 143; j++)
			{
				MessagePackCode.typeLookupTable[j] = MessagePackType.Map;
				MessagePackCode.formatNameTable[j] = "fixmap";
			}
			for (int k = 144; k <= 159; k++)
			{
				MessagePackCode.typeLookupTable[k] = MessagePackType.Array;
				MessagePackCode.formatNameTable[k] = "fixarray";
			}
			for (int l = 160; l <= 191; l++)
			{
				MessagePackCode.typeLookupTable[l] = MessagePackType.String;
				MessagePackCode.formatNameTable[l] = "fixstr";
			}
			MessagePackCode.typeLookupTable[192] = MessagePackType.Nil;
			MessagePackCode.typeLookupTable[193] = MessagePackType.Unknown;
			MessagePackCode.typeLookupTable[194] = MessagePackType.Boolean;
			MessagePackCode.typeLookupTable[195] = MessagePackType.Boolean;
			MessagePackCode.typeLookupTable[196] = MessagePackType.Binary;
			MessagePackCode.typeLookupTable[197] = MessagePackType.Binary;
			MessagePackCode.typeLookupTable[198] = MessagePackType.Binary;
			MessagePackCode.typeLookupTable[199] = MessagePackType.Extension;
			MessagePackCode.typeLookupTable[200] = MessagePackType.Extension;
			MessagePackCode.typeLookupTable[201] = MessagePackType.Extension;
			MessagePackCode.typeLookupTable[202] = MessagePackType.Float;
			MessagePackCode.typeLookupTable[203] = MessagePackType.Float;
			MessagePackCode.typeLookupTable[204] = MessagePackType.Integer;
			MessagePackCode.typeLookupTable[205] = MessagePackType.Integer;
			MessagePackCode.typeLookupTable[206] = MessagePackType.Integer;
			MessagePackCode.typeLookupTable[207] = MessagePackType.Integer;
			MessagePackCode.typeLookupTable[208] = MessagePackType.Integer;
			MessagePackCode.typeLookupTable[209] = MessagePackType.Integer;
			MessagePackCode.typeLookupTable[210] = MessagePackType.Integer;
			MessagePackCode.typeLookupTable[211] = MessagePackType.Integer;
			MessagePackCode.typeLookupTable[212] = MessagePackType.Extension;
			MessagePackCode.typeLookupTable[213] = MessagePackType.Extension;
			MessagePackCode.typeLookupTable[214] = MessagePackType.Extension;
			MessagePackCode.typeLookupTable[215] = MessagePackType.Extension;
			MessagePackCode.typeLookupTable[216] = MessagePackType.Extension;
			MessagePackCode.typeLookupTable[217] = MessagePackType.String;
			MessagePackCode.typeLookupTable[218] = MessagePackType.String;
			MessagePackCode.typeLookupTable[219] = MessagePackType.String;
			MessagePackCode.typeLookupTable[220] = MessagePackType.Array;
			MessagePackCode.typeLookupTable[221] = MessagePackType.Array;
			MessagePackCode.typeLookupTable[222] = MessagePackType.Map;
			MessagePackCode.typeLookupTable[223] = MessagePackType.Map;
			MessagePackCode.formatNameTable[192] = "nil";
			MessagePackCode.formatNameTable[193] = "(never used)";
			MessagePackCode.formatNameTable[194] = "false";
			MessagePackCode.formatNameTable[195] = "true";
			MessagePackCode.formatNameTable[196] = "bin 8";
			MessagePackCode.formatNameTable[197] = "bin 16";
			MessagePackCode.formatNameTable[198] = "bin 32";
			MessagePackCode.formatNameTable[199] = "ext 8";
			MessagePackCode.formatNameTable[200] = "ext 16";
			MessagePackCode.formatNameTable[201] = "ext 32";
			MessagePackCode.formatNameTable[202] = "float 32";
			MessagePackCode.formatNameTable[203] = "float 64";
			MessagePackCode.formatNameTable[204] = "uint 8";
			MessagePackCode.formatNameTable[205] = "uint 16";
			MessagePackCode.formatNameTable[206] = "uint 32";
			MessagePackCode.formatNameTable[207] = "uint 64";
			MessagePackCode.formatNameTable[208] = "int 8";
			MessagePackCode.formatNameTable[209] = "int 16";
			MessagePackCode.formatNameTable[210] = "int 32";
			MessagePackCode.formatNameTable[211] = "int 64";
			MessagePackCode.formatNameTable[212] = "fixext 1";
			MessagePackCode.formatNameTable[213] = "fixext 2";
			MessagePackCode.formatNameTable[214] = "fixext 4";
			MessagePackCode.formatNameTable[215] = "fixext 8";
			MessagePackCode.formatNameTable[216] = "fixext 16";
			MessagePackCode.formatNameTable[217] = "str 8";
			MessagePackCode.formatNameTable[218] = "str 16";
			MessagePackCode.formatNameTable[219] = "str 32";
			MessagePackCode.formatNameTable[220] = "array 16";
			MessagePackCode.formatNameTable[221] = "array 32";
			MessagePackCode.formatNameTable[222] = "map 16";
			MessagePackCode.formatNameTable[223] = "map 32";
			for (int m = 224; m <= 255; m++)
			{
				MessagePackCode.typeLookupTable[m] = MessagePackType.Integer;
				MessagePackCode.formatNameTable[m] = "negative fixint";
			}
		}

		// Token: 0x0600038B RID: 907 RVA: 0x0000CE5C File Offset: 0x0000B25C
		public static MessagePackType ToMessagePackType(byte code)
		{
			return MessagePackCode.typeLookupTable[(int)code];
		}

		// Token: 0x0600038C RID: 908 RVA: 0x0000CE65 File Offset: 0x0000B265
		public static string ToFormatName(byte code)
		{
			return MessagePackCode.formatNameTable[(int)code];
		}

		// Token: 0x0400011D RID: 285
		public const byte MinFixInt = 0;

		// Token: 0x0400011E RID: 286
		public const byte MaxFixInt = 127;

		// Token: 0x0400011F RID: 287
		public const byte MinFixMap = 128;

		// Token: 0x04000120 RID: 288
		public const byte MaxFixMap = 143;

		// Token: 0x04000121 RID: 289
		public const byte MinFixArray = 144;

		// Token: 0x04000122 RID: 290
		public const byte MaxFixArray = 159;

		// Token: 0x04000123 RID: 291
		public const byte MinFixStr = 160;

		// Token: 0x04000124 RID: 292
		public const byte MaxFixStr = 191;

		// Token: 0x04000125 RID: 293
		public const byte Nil = 192;

		// Token: 0x04000126 RID: 294
		public const byte NeverUsed = 193;

		// Token: 0x04000127 RID: 295
		public const byte False = 194;

		// Token: 0x04000128 RID: 296
		public const byte True = 195;

		// Token: 0x04000129 RID: 297
		public const byte Bin8 = 196;

		// Token: 0x0400012A RID: 298
		public const byte Bin16 = 197;

		// Token: 0x0400012B RID: 299
		public const byte Bin32 = 198;

		// Token: 0x0400012C RID: 300
		public const byte Ext8 = 199;

		// Token: 0x0400012D RID: 301
		public const byte Ext16 = 200;

		// Token: 0x0400012E RID: 302
		public const byte Ext32 = 201;

		// Token: 0x0400012F RID: 303
		public const byte Float32 = 202;

		// Token: 0x04000130 RID: 304
		public const byte Float64 = 203;

		// Token: 0x04000131 RID: 305
		public const byte UInt8 = 204;

		// Token: 0x04000132 RID: 306
		public const byte UInt16 = 205;

		// Token: 0x04000133 RID: 307
		public const byte UInt32 = 206;

		// Token: 0x04000134 RID: 308
		public const byte UInt64 = 207;

		// Token: 0x04000135 RID: 309
		public const byte Int8 = 208;

		// Token: 0x04000136 RID: 310
		public const byte Int16 = 209;

		// Token: 0x04000137 RID: 311
		public const byte Int32 = 210;

		// Token: 0x04000138 RID: 312
		public const byte Int64 = 211;

		// Token: 0x04000139 RID: 313
		public const byte FixExt1 = 212;

		// Token: 0x0400013A RID: 314
		public const byte FixExt2 = 213;

		// Token: 0x0400013B RID: 315
		public const byte FixExt4 = 214;

		// Token: 0x0400013C RID: 316
		public const byte FixExt8 = 215;

		// Token: 0x0400013D RID: 317
		public const byte FixExt16 = 216;

		// Token: 0x0400013E RID: 318
		public const byte Str8 = 217;

		// Token: 0x0400013F RID: 319
		public const byte Str16 = 218;

		// Token: 0x04000140 RID: 320
		public const byte Str32 = 219;

		// Token: 0x04000141 RID: 321
		public const byte Array16 = 220;

		// Token: 0x04000142 RID: 322
		public const byte Array32 = 221;

		// Token: 0x04000143 RID: 323
		public const byte Map16 = 222;

		// Token: 0x04000144 RID: 324
		public const byte Map32 = 223;

		// Token: 0x04000145 RID: 325
		public const byte MinNegativeFixInt = 224;

		// Token: 0x04000146 RID: 326
		public const byte MaxNegativeFixInt = 255;

		// Token: 0x04000147 RID: 327
		private static readonly MessagePackType[] typeLookupTable = new MessagePackType[256];

		// Token: 0x04000148 RID: 328
		private static readonly string[] formatNameTable = new string[256];
	}
}
